package com.zr.sms.serviceimpl;


import com.zr.sms.dao.EmployeeDao;
import com.zr.sms.daoimpl.EmployeeDaoImpl;
import com.zr.sms.model.Employee;
import com.zr.sms.service.ValidateService;

public class ValidateServiceImpl implements ValidateService{
     EmployeeDao emp=new EmployeeDaoImpl();
	
	public Employee validateEmp(String ename, String epsw) {
		
		Employee employee=emp.selectEmpByNameAndPsw(ename, epsw);
		if(employee.getEname()==null){
			return null;
		}else{
			return employee;
		}
		
		
	}

}
